//
//  CZNetworkManager.h
//  网易新闻


#import "AFNetworking.h"

/// 网络管理器 - 统一管理所有网络请求 包含简单的登录请求

@interface CZNetworkManager : AFHTTPSessionManager

+ (instancetype)sharedManager;

/// AFN 的GET
///
/// @param category   url字符串
///
- (void)GetListWithURLString:(NSString *)urlString parameters:(NSDictionary *)parameters completion:(void (^)(id, NSError *))completion;

/**
 *  AFN 的POST
 *
 *  @param urlString  url字符串
 *  @param parameters 参数,需要时候设置
 *  @param completion 完成返回JSON
 */
- (void)PostListWithURLString:(NSString *)urlString parameters:(NSDictionary *)parameters completion:(void (^)(id, NSError *))completion;


- (void)loginWithURLString:(NSString *)urlString parameters:(NSDictionary *)parameters completion:(void (^)(id responseObject))completion;

@end
